<?php

use yii\db\Migration;

class m000000_000008_create_system_message extends Migration
{
    public function up()
    {
        $this->createTable('{{%system_message}}', [
            'id'=>$this->primaryKey(), // PK
            'time'=>$this->integer(), // 发送时间
            'title'=>$this->string(256), // 标题
            'content'=>$this->text(), // 内容
        ]);
    }

    public function down()
    {
        $this->dropTable('{{%system_message}}');
    }
}
